package com.yjx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjx.mapper.PropertyTypeMapper;
import com.yjx.service.PropertyTypeService;
import com.yjx.vo.PropertyType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 10657
* @description 针对表【property_type】的数据库操作Service实现
* @createDate 2023-05-11 15:55:25
*/
@Service
public class PropertyTypeServiceImpl extends ServiceImpl<PropertyTypeMapper, PropertyType>
    implements PropertyTypeService{
    @Resource
    PropertyTypeMapper propertyTypeMapper;

    public PropertyType findPropertyTypeById(Integer id){
        return propertyTypeMapper.selectOne(new QueryWrapper<PropertyType>().eq("id",id));
    }


}




